package net.lzzy.lxq.controller;

import net.lzzy.lxq.entities.WorkSchedule;
import net.lzzy.lxq.server.WorkScheduleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class WorkScheduleController {

    @Autowired
    WorkScheduleService scheduleService;

    @GetMapping("/work_schedule")
    public WorkSchedule getWorkSchedule(){
        return scheduleService.getWorkSchedule();
    }
}
